package com.shxy.service.impl;

import com.shxy.dao.UserDao;
import com.shxy.entity.user.User;
import com.shxy.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class UserService implements IUserService {
    @Autowired
    private UserDao userDao;

    @Override
    public User getUserById(int id) {
        return userDao.findById(id);
    }

    @Override
    public User getUserByName(String username) {
        return userDao.findByUsername(username);
    }

    @Override
    public List<User> initFromCustomers() {
        return null;
    }
}
